﻿using System;
using System.IO;

namespace MovePipeFile
{
    class Program
    {
        static void Main(string[] args)
        {
            //string orgPath = @"F:\管道文件按系统分";
            //string aimPath = @"D:\大宗物件安装动画\模型\管道\";
            //DirectoryInfo root = new DirectoryInfo(orgPath);
            //FileInfo[] files = root.GetFiles();
            //for (int i = 0; i < files.Length; i++)
            //{
            //    string sys = files[i].Name.Substring(0, 3);
            //    string aimSysPath = aimPath + sys;

            //    if (!Directory.Exists(aimSysPath))
            //    {
            //        Directory.CreateDirectory(aimSysPath);

            //    }
            //    string aimfullpath = aimSysPath+"\\" + files[i].Name;
            //    Console.WriteLine($"移动文件 {files[i].Name}");
            //    files[i].MoveTo(aimfullpath);


            //}


            //string[] sys = {"CFE","CIS","CSP","EES","EMQ","FDP","FEP","FGP","FNP","FSP","FWD","FWP","PCS","PRS","PSC","RBM","RCB","RCS","RCV","REB","RED","RFT","RHR","RND","RNS","RSI","RVC","RVD","TDM","TFA","TFM","TSA","TSM","TTB","TTV","WAC","WAI","WAP","WAR","WAS","WCC","WCD","WCR","WEC","WES","WHD","WNC","WND","WPW","WQB","WSC","WSD","WSR","WSS","ZBR","ZGT","ZLD","ZLT","ZNR","ZST"};
            //string a = @"D:\大宗物件安装动画\合并模型\管道";
            //for (int i = 0; i < sys.Length; i++)
            //{
            //    File.Copy(@"D:\大宗物件安装动画\合并模型\管道\ccc.dgn", a + "\\" + sys[i] + ".dgn");
            //}
            MWork mWork = new MWork();
            mWork.Move();

        }
    }
}
